class Group {

  String title
  String info
//  User moderator
  Section section

  int stat1
  int stat2
  int stat3
  int stat4

  transient stat

  def getStat() {
    return [stat1, stat2, stat3, stat4]
  }

  static mapping = {
    table 'groups'
    version false
    moderator column: 'moderator'
    section column: 'section'
  }

  static constraints = {
//    section nullabe: true
  }
}
